package smartgrid;

import java.util.List;
import javax.ejb.Local;

@Local
public interface TariffInterface {

    /**
     * Get List of tariffs
     * 
     * @return List of tariffs 
     */
    List<Tariff> getTariffs();

    /**
     * Get a list of tariffs by Supplier ID
     * 
     * @param id
     * @return List of tariffs by Supplier ID
     */
    List<Tariff> getTariffsBySupplier(Integer id);
    
    /**
     * Inserts one tariff
     * 
     * @param supplier Suppliers's ID
     * @param name Tariff's name
     * @return if success: true
     */
    Boolean insertTariff(Integer supplierID, String name);
}